package com.me.ultilities;


import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.Animation;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.g2d.TextureRegion;

public class DrawComponent {
	private TextureRegion animationFrames;

	public void drawPicture(Texture texture, SpriteBatch spriteBatch, float x,
			float y, int height, int width) {
		spriteBatch.draw(texture, x, y, width, height);
	}

	public void drawAnimation(float speed, Animation animation,
			float stateTime, TextureRegion[] textureRegion,
			SpriteBatch spriteBatch, float x, float y, boolean cycle) {		
		
		animation = new Animation(speed, textureRegion);
		animationFrames = animation.getKeyFrame(stateTime, cycle);
		spriteBatch.draw(animationFrames, x, y);
		
	}
	public void drawButton(){}
}
